webpackJsonp([60],{

/***/ "B1Q7":
/***/ (function(module, exports) {

// removed by extract-text-webpack-plugin

/***/ }),

/***/ "ZOK1":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });

// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/regenerator/index.js
var regenerator = __webpack_require__("lC5x");
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);

// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/core-js/promise.js
var promise = __webpack_require__("rVsN");
var promise_default = /*#__PURE__*/__webpack_require__.n(promise);

// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__("KH7x");
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);

// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__("J0Oq");
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);

// EXTERNAL MODULE: ./src/common/api/commonApi.js
var commonApi = __webpack_require__("+/+p");

// EXTERNAL MODULE: ./src/common/utils/index.js
var utils = __webpack_require__("dh3M");

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/anjian/company/list.vue




//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

// export default {
//   data() {
//     return {
//       options: {
//         global: {
//           title: '企业信息',
//           collectionName: 'ent_enterprise'
//         },
//         layout: 'card',
//         columns: [
//           {
//             label: '企业名称',
//             field: 'EnterpriseName',
//             isTitle: true,
//             hide: ['list']
//           },
//           {
//             label: '企业类型',
//             field: 'EconomyType'
//           },
//           {
//             label: '经营范围',
//             field: 'BusinessScope'
//           },
//           {
//             label: '地址',
//             field: 'LocationAddressDetails'
//           }
//         ]
//       }
//     }
//   },
//   created() {},
//   methods: {}
// }



/* harmony default export */ var list = ({
  data: function data() {
    var _this = this;

    return {
      input: false,
      inputValue: '',
      rightData: [{
        font: 'yt-icon yt-icon-search',
        click: function click() {
          _this.input = !_this.input;
        }
      }],
      searchApi: function () {
        var _ref = asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee(_ref2) {
          var skip = _ref2.skip,
              limit = _ref2.limit;

          var p, _ref3, _ref4, dic, items;

          return regenerator_default.a.wrap(function _callee$(_context) {
            while (1) {
              switch (_context.prev = _context.next) {
                case 0:
                  p = [commonApi["a" /* commonApi */].dictionary('enterprise_type'), commonApi["a" /* commonApi */].search('ent_enterprise', {
                    contains: { EnterpriseName: _this.inputValue }
                  })];
                  _context.next = 3;
                  return promise_default.a.all(p);

                case 3:
                  _ref3 = _context.sent;
                  _ref4 = slicedToArray_default()(_ref3, 2);
                  dic = _ref4[0];
                  items = _ref4[1];
                  return _context.abrupt('return', Object(utils["d" /* ReplaceDictionary */])(items, { EconomyType: dic }));

                case 8:
                case 'end':
                  return _context.stop();
              }
            }
          }, _callee, _this);
        }));

        return function searchApi(_x) {
          return _ref.apply(this, arguments);
        };
      }()
    };
  },

  methods: {
    goDetailPage: function goDetailPage(id) {
      this.$router.$push({ path: '/company/detail', query: { id: id } });
    },
    refresh: function refresh() {
      this.$refs.group.startPull();
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-0fcd2748","hasScoped":true,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/anjian/company/list.vue
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('yt-page',{attrs:{"title":"企业信息","rightData":_vm.rightData,"input":_vm.input},on:{"change":_vm.refresh},model:{value:(_vm.inputValue),callback:function ($$v) {_vm.inputValue=$$v},expression:"inputValue"}},[_c('yt-group',{ref:"group",attrs:{"group":false,"searchApi":_vm.searchApi},scopedSlots:_vm._u([{key:"default",fn:function(item){return _c('yt-card',{attrs:{"title":item.EnterpriseName,"btn":"查看更多内容","tag":false},on:{"btn-click":function($event){return _vm.goDetailPage(item.id)}}},[_c('p',{staticClass:"text-info"},[_c('span',[_vm._v("企业类型:")]),_vm._v(" "),_c('span',{staticClass:"m-r"},[_vm._v(_vm._s(item.EconomyType))]),_vm._v(" "),_c('span',[_vm._v("经营范围:")]),_vm._v(" "),_c('span',{staticClass:"m-r"},[_vm._v(_vm._s(item.BusinessScope))]),_vm._v(" "),_c('span',[_vm._v("地址:")]),_vm._v(" "),_c('span',[_vm._v(_vm._s(item.LocationAddressDetails))])])])}}])})],1)}
var staticRenderFns = []
var esExports = { render: render, staticRenderFns: staticRenderFns }
/* harmony default export */ var company_list = (esExports);
// CONCATENATED MODULE: ./src/common/anjian/company/list.vue
function injectStyle (ssrContext) {
  __webpack_require__("B1Q7")
}
var normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-0fcd2748"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
  list,
  company_list,
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ var anjian_company_list = __webpack_exports__["default"] = (Component.exports);


/***/ })

});